import { Component } from '@angular/core';
import {UtilsService} from './service/utils.service';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss']
})
export class AppComponent {
  constructor(private utils: UtilsService) {
    this.deleteLoading();
  }
  deleteLoading() {
    if (this.utils.firstLoading) {
      document.body.removeChild(document.querySelector('#load-first'));
      this.utils.firstLoading = false;
    }
  }
}
